package com.bootdo.system.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.system.dao.JiaoyicelueDao;
import com.bootdo.system.domain.JiaoyicelueDO;
import com.bootdo.system.service.JiaoyicelueService;



@Service
public class JiaoyicelueServiceImpl implements JiaoyicelueService {
	@Autowired
	private JiaoyicelueDao jiaoyicelueDao;
	
	@Override
	public JiaoyicelueDO get(Long id){
		return jiaoyicelueDao.get(id);
	}
	
	@Override
	public List<JiaoyicelueDO> list(Map<String, Object> map){
		return jiaoyicelueDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return jiaoyicelueDao.count(map);
	}
	
	@Override
	public int save(JiaoyicelueDO jiaoyicelue){
		return jiaoyicelueDao.save(jiaoyicelue);
	}
	
	@Override
	public int update(JiaoyicelueDO jiaoyicelue){
		return jiaoyicelueDao.update(jiaoyicelue);
	}
	
	@Override
	public int remove(Long id){
		return jiaoyicelueDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return jiaoyicelueDao.batchRemove(ids);
	}

    @Override
    public void stopAll(Long userid) {
        jiaoyicelueDao.stopAll(userid);
    }

	@Override
	public JiaoyicelueDO getCelueByUserIdAndBizhongId(Long userid, Integer id) {

		return jiaoyicelueDao.getCelueByUserIdAndBizhongId(userid, id);
	}

}
